<?php if (!defined('BASEPATH')) exit('No direct script access allowed');

class AdminLib
{
	function __construct() {
		$this->CI = get_instance();
		$this->CI->load->model('produkter');
	}
	
	public function getProductList() {
		
		$products = $this->CI->produkter->getProducts();
		return $products;
	}

	public function getProduct($id){
		return $this->CI->produkter->getProduct($id);
	}
}